package net.dodo.robot;

/**
 * 机器人启动
 * 
 * @author yanping
 * 
 */
public class RobotApp extends Thread {
	// @Override
	// public synchronized void start() {
	// super.start();
	// }
	//
	// @Override
	// public void run() {
	// super.run();
	// }

	public static void main(String[] args) {
		ZmrRobot robot = null;
		Screen screen = new Screen();
		try {
			robot = new ZmrRobot();
		} catch (Exception e) {
			e.printStackTrace();
		}
		if (null != robot) {
			robot.delay(3000);
			int x = screen.getHalfScreenWidth();
			int y = screen.getHalfScreenHeight();
			int ix = 0, iy = 0;
			// x = 650;
			// y = 380;
			// robot.mouseMove(x, y);
			// robot.doubleClick(robot, InputEvent.BUTTON1_MASK, 1);
			if (robot.enteredRoom(robot, x, y, ix, iy)) {
				System.exit(0);
			}
		}
	}
}
